<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>订单详情</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../script/jquery-1.4.4.min.js"></script>
</head>
<body>
<div class="container">
	<div class="flow">
        <div class="itemtitle">
            <h3>订单详情</h3>
            <ul>
                <li <{if $smarty.get.operation==''}>class="current"<{/if}>><a href="?m=product&s=order_detail.php&oid=<{$smarty.get.oid}>"><span>基本信息</span></a></li>
                
                <li <{if $smarty.get.operation=='log'}>class="current"<{/if}>><a href="?m=product&s=order_detail.php&oid=<{$smarty.get.oid}>&operation=log"><span>订单日志</span></a></li>
                
            </ul>
        </div>
    </div>
	<div class="h35"></div>
    <{if $smarty.get.operation==log}>
    <table class="table product">    
    <thead>
        <tr>
            <th class="partition" colspan="99">订单日志</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td width="50">序号</td>
            <td width="180">时间</td>
            <td width="180">操作人</td>
            <td width="180">行为</td>
            <td width="150">结果</td>
            <td>备注</td>
        </tr>
        <{foreach item=list key=key from=$de}>
        <tr>
            <td><{$key+1}></td>
            <td><{$list.create_time|date_format:"%Y-%m-%d&nbsp;%H:%M:%S"}></td>
            <td><{if $list.admin_name}><{$list.admin_name}><{else}>顾客<{/if}></td>
            <td><{$list.behavior}></td>
            <td><{$list.result}></td>
            <td><{$list.text}></td>
        </tr>
        <{/foreach}>
    </tbody>
    </table>
    <{else}> 
    <table class="table">
        <thead>
            <tr>
                <th class="partition" colspan="99">订单详情</th>
            </tr>
        </thead>
        <tbody>
        <tr class="tr">
            <td width="50">订单状态</td>
            <td width="100"><b class="org"><{$de.statu_text}></b></td>
        
            <td width="50">订单编号</td>
            <td width="150"><{$de.order_id}></td>
            
            <td width="50">下单时间</td>
            <td><{$de.create_time|date_format:"%Y-%m-%d&nbsp;%H:%M:%S"}></td>
        </tr>
        <tr class="tr">
            <td>支付状态</td>
            <td><{$de.order_ship_status}></td>
            <td>配送状态</td>
            <td colspan="3"><{$de.order_pay_status}></td>
        </tr>
        </tbody>
    </table>
    <table class="table product">    
        <thead>
            <tr>
                <th class="partition" colspan="99">订单信息</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <!--<td class="al">编号</td>-->
                <td class="al">产品</td>
                <td width="150">场馆</td>
                <td width="150">座位</td>
                <td width="150">单价</td>
                <td width="150">数量</td>
                <td width="150">总价</td>
            </tr>
            <{foreach item=list from=$de.product}>
            <tr>
                <!--<td class="al"><{$list.code}></td>-->
                <td class="al <{if $list.service}>npb<{/if}>">
                    <a target="_blank" href="../?m=product&s=detail&id=<{$list.product_id}>">
                        <{$list.name}>
                    </a>
                </td>
                <td>
                    <{$list.spot_id|get_spot_name}>
                </td>
                <td>
                    <{if !empty($list.spot_model_id)}>
                    <{foreach item=vo from=$list.spot_model_id key=k}>
                    <{$vo|get_spot_model_name}><{$list.seat_seat_row[$k]}>排<{$list.seat_seat_cols[$k]}>座<br/>
                    <{/foreach}>
                    <{else}>
                    系统随机分配
                    <{/if}>
                </td>
                <td <{if $list.service}>class="npb"<{/if}>><{$config.money}><{$list.price|number_format:2}></td>
                <td <{if $list.service}>rowspan="2"<{/if}>><{$list.num}></td>
                <td <{if $list.service}>rowspan="2"<{/if}>><{$config.money}><{$list.sum|number_format:2}></td>
            </tr>
            <{if $list.product_give}>
            <tr class="product_give">
                <td class="al">赠品</td>
                <td class="al">
                    <{foreach item=slist from=$list.product_give}>
                        <li><{$slist.pname}></li>
                    <{/foreach}>
                </td>
            </tr>
            <{/if}>
            <{if $list.service}>
            <tr class="other">
                <td class="al">服务</td>
                <td class="al">
                    <{foreach item=slist from=$list.service}>
                        <li><{$slist.name}></li>
                    <{/foreach}>
                </td>
                <td>
                    <{foreach item=slist from=$list.service}>
                        <p><{$config.money}><{$slist.price}></p>
                    <{/foreach}>
                </td>
            </tr>
            <{/if}>
            <{/foreach}>
            <{if $de.des}>
            <tr>
                <td class="al" colspan="99">备注: <{$de.des}></td>
            </tr>
            <{/if}>
        </tbody>
    </table>
    <table class="table">
        <tbody>
        <tr>
            <td width="100">商品总金额:</td>
            <td width="200"><{$config.money}><{$de.cost}></td>
            <td width="100">配送方式：</td>
            <td><{$de.shipping_name}></td>
        </tr>
        <tr>
            <td>配送费用:</td>
            <td><{$config.money}><{$de.freight}></td>
            <td>支付方式：</td>
            <td><{$de.payment_name}></td>
        </tr>
        <tr>
            <td>商品重量:</td>
            <td><{$de.weight}>kg</td>
            <td>应付总额:</td>
            <td><b class="red"><{$config.money}><{$de.cost+$de.freight|number_format:2}></b></td>
        </tr>
        <tr>
            <td>积分抵扣：</td>
            <td colspan="2"><{$de.cost_point}></td>
        </tr>
        </tbody>
    </table>
    <table class="table">         
        <thead>
            <tr>
                <th class="partition" colspan="99">收货地址</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td width="100">收货人</td>
                <td><{$de.ship_name}></td>
            </tr>
            <tr>
                <td>联系电话</td>
                <td><{$de.ship_mobile}> <{$de.ship_tel}></td>
            </tr>
            <tr>
                <td>收货地址</td>
                <td><{$de.ship_addr}></td>
            </tr> 
        </tbody>
    </table>
    <{if $de.invoice_type > 0}>
    <table class="table">         
        <thead>
            <tr>
                <th class="partition" colspan="99">发票信息</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td width="100">发票信息</td>
                <td><{if $de.invoice_type == 1}> 个人 <{elseif $de.invoice_type == 2 }> 公司 <{else}> 个人 <{/if}></td>
            </tr>
            <tr>
                <td>发票抬头</td>
                <td><{if $de.invoice_type == 1}> 个人 <{elseif $de.invoice_type == 2 }> <{$de.invoice_company}> <{else}> 个人 <{/if}></td>
            </tr>
            <tr>
                <td>发票内容</td>
                <td>明细</td>
            </tr>
        </tbody>
    </table>
    <{/if}>
    <{if $de.status>=3 }>
    <table class="table">         
        <thead>
            <tr>
                <th class="partition" colspan="99">物流信息</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td width="100">物流单号</td>
                <td><{$de.shipping_no}></td>
            </tr>
        </tbody>
    </table>
    <{/if}>
    <{/if}>
</div>
</body>
</html>